package ygw.study.designPatterns.prototype;

/**
 * <p>
 * 步骤 2
 * 创建扩展了上面抽象类的实体类。
 * </p>
 * <p>
 * Copyright:2021.All rights reserved.
 * </p>
 * <p>
 * Company:Zsoft
 * </p>
 * <p>
 * CreateDate:2021-10-20 10:26
 * </p>
 *
 * @author YuGongWen
 * @history Mender:YuGongWen；Date:2021-10-20 10:26；
 */
public class Rectangle extends Shape {

    public Rectangle(){
        type = "Rectangle";
    }

    @Override
    public void draw() {
        System.out.println("Inside Rectangle::draw() method.");
    }
}